package cn.bgs.mapper;

import cn.bgs.pojo.Community;
import cn.bgs.vo.CommunitysVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 小区表 Mapper 接口
 * </p>
 *
 * @author cf
 * @since 2022-06-07
 */
@Mapper
public interface CommunityMapper extends BaseMapper<Community> {

    List<Community> findCommunity();

    Integer addCommunity(CommunitysVo community);

    Integer addFile(@Param("communityId") Integer communityId,@Param("file") String file);

    Integer updateCommunity(CommunitysVo community);

    Integer updateFile(@Param("id")Integer id,@Param("file")String file);

    Integer delCommunity(Integer id);

    Integer delFile(Integer id);

}
